﻿using System;
using System.Web.Mvc;

namespace Pay.Web.Areas.Admin {
	public class AdminAreaRegistration : AreaRegistration {
		public override string AreaName {
			get {
				return "Admin";
			}
		}

		public override void RegisterArea(AreaRegistrationContext context) {
			context.Routes.MapMvcAttributeRoutes();
			context.MapRoute(
				"Admin",
				"Admin/{controller}/{action}/{id}",
				new { controller = "home", action = "Index", id = UrlParameter.Optional },
				namespaces: new string[] { "Pay.Web.Areas.Admin.Controllers" }
				);
		}
	}
}